public class Prime_number_num {
    public static void main(String args[]) {
        int count = 0;
        for(int i = 100;i<201;i++) {
            boolean flag = true;

            for(int k =2;k<i;k++) {
                if(i%k == 0) {
                    flag = false;
                    break;
                }
            }
            if(flag) {
                ++count;
                System.out.println(i+"是素数");
            }

        }
        System.out.println("101-200间共有"+count+"个素数");
    }
}
